import request from '@/utils/request'

// 添加考核计划
export function addAssessInfo(data) {
  return request({
    url: '/system/assessInfo/addAssessInfo',
    method: 'post',
    data: data
  })
}


// 绩效考核首页查询
export function getAssessInfoList(query) {
  return request({
    url: '/system/assessInfo/getAssessInfoList',
    method: 'get',
    params: query
  })
}

export function getTargetByProIdAndTarIds(proId, tarIds, dimIds) {
  return request({
    url: '/system/assessInfo/getTargetByProIdAndTarIds/' + proId + '/' + tarIds + '/' + dimIds,
    method: 'get'
  })
}


export function getEmpListByAId(query) {
  return request({
    url: '/system/assessInfo/getEmpListByAId',
    method: 'get',
    params: query
  })
}


export function getEmpInfoFlow(aid,uid) {
  return request({
    url: '/system/assessInfo/getEmpInfoFlow/'+aid+'/'+uid,
    method: 'get'
  })
}


export function getAssessEmpInfo(aid,uid) {
  return request({
    url: '/system/assessInfo/getAssessEmpInfo/'+aid+'/'+uid,
    method: 'get'
  })
}
